/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rie06.rmi;

import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;
import javax.ws.rs.PathParam;
import javax.ws.rs.Consumes;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.GET;
import javax.ws.rs.Produces;

/**
 * REST Web Service
 *
 * @author clement
 */
@Path("/monitoring")
public class WS_Monitoring {
    
    @Context
    private UriInfo context;

    /**
     * Creates a new instance of WS_Monitoring
     */
    public WS_Monitoring() {
    }
    
    @Path("/live/{server_ip}")
    public WS_Live getLive(@PathParam("server_ip") String server_ip) {
      WS_Live live = new WS_Live(server_ip);
      
      return live;
    }
    
    @Path("/history")
    public WS_History getHistory() {
      WS_History history = new WS_History();
      
      return history;
    }

    /**
     * Retrieves representation of an instance of com.rie06.jaxrsws.WS_Monitoring
     *
     * @return an instance of java.lang.String
     */
    @GET
    @Produces("application/xml")
    public String getXml() {
        //TODO return proper representation object
        throw new UnsupportedOperationException();
    }

    /**
     * PUT method for updating or creating an instance of WS_Monitoring
     *
     * @param content representation for the resource
     * @return an HTTP response with content of the updated or created resource.
     */
    @PUT
    @Consumes("application/xml")
    public void putXml(String content) {
    }
}
